FROM registry.cn-chengdu.aliyuncs.com/ghx/hc-api:base

COPY build/libs/*SNAPSHOT.jar app.jar

# RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
# RUN apk update
# RUN apk add --no-cache freetype msttcorefonts-installer fontconfig ttf-dejavu
# RUN fc-cache -f
# RUN update-ms-fonts

ENV PG_HOST="postgis"
ENV PG_PORT=5432
ENV PG_DB="hc"
ENV PG_USERNAME="hc"
ENV PG_PASSWORD="hc@1234."

ENV REDIS_HOST="redis"
ENV REDIS_PORT=6379
ENV REDIS_DB=5
ENV REDIS_PASSWORD="hc@1234."

ENV DOUYIN_APPID="tt54ea2257cbdbb47101"
ENV DOUYIN_SECRET="000d2086c9b1b4249ff893e543a73ef1f17be668"

ENV SERVER_PORT=18808
ENV STORAGE_PATH="/data/storage"


EXPOSE 18808

ENTRYPOINT ["java","-jar","/app.jar"]
